var _EsdDynamicTransformationFunction = function($){
/**
* 命名空间定义
*/
var _EsdDynamicTransformationScript = {};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
_EsdDynamicTransformationScript.navBlock.selector = {};
/**
* 文本链接 a
*/
//保证所有a标签都有href
$("a").each(function(){

var aHref = this.href;
if( aHref=="" || aHref==undefined ){
$(this).attr("href","javascript:void(0)");
}

//给a标签加title
var aTitle = this.title;
var aText = this.text;

if( aTitle=="" || aTitle==undefined ){
if( aText!="" || aText!=undefined ){
$(this).attr("title",$.trim(aText));
}
}

});

//select下的option添加title
$("option").each(function(){
var oTitle = this.title;
var oText = this.text;
if( oTitle=="" || oTitle==undefined ){
if( oText!="" || oText!=undefined ){
$(this).attr("title",$.trim(oText));
}
}
});
/**
* 图片处理片段
*/

$('img[src="./xwzx/spxw/201910/W020191014569064340443.jpg"]').attr('title','辉煌七十载 追梦新时代——省卫生健康系统举办“庆祝中华人民共和国成立70周年”文艺汇演').attr('alt','辉煌七十载 追梦新时代——省卫生健康系统举办“庆祝中华人民共和国成立70周年”文艺汇演');$('img[src="./images/xxgk4_20180903.jpg"]').attr('title','预决算公开').attr('alt','预决算公开');$('img[src="./images/xxgk1_qzqd_Xu191108.jpg"]').attr('title','权责清单').attr('alt','权责清单');$('img[src="./201904/W020190413525970234899.jpg"]').attr('title','省卫生健康委召开全省麻疹防治工作视频会议').attr('alt','省卫生健康委召开全省麻疹防治工作视频会议');$('img[src="./xwzx/tpxw/201904/W020190403584188919692.jpg"]').attr('title','吉林省召开改革完善医疗卫生行业综合监管制度新闻发布会').attr('alt','吉林省召开改革完善医疗卫生行业综合监管制度新闻发布会');$('img[src="./images/xxgk3_20180903.jpg"]').attr('title','疫情通报').attr('alt','疫情通报');$('img[src="./images/wjw2017_icon2.png"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/gaba_logo.png"]').attr('title','吉公网安备').attr('alt','吉公网安备');$('img[src="./images/weixin_wjw20181101.jpg"]').attr('title','微信').attr('alt','微信');$('img[src="./images/wjw2017_xfdh.jpg"]').attr('title','信访电话').attr('alt','信访电话');$('img[src="./zdzt/201705/W020170531538512331879.jpg"]').attr('title','进一步改善医疗服务行动计划').attr('alt','进一步改善医疗服务行动计划');$('img[src="./images/wjw2017_icon3.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./xwzx/tpxw/201905/W020190513410889456696.jpg"]').attr('title','2019年住院医师规范化培训专业理论结业考核圆满结束').attr('alt','2019年住院医师规范化培训专业理论结业考核圆满结束');$('img[src="./zdzt/201705/W020170531538363774915.jpg"]').attr('title','深化医疗卫生体制改革').attr('alt','深化医疗卫生体制改革');$('img[src="./images/xxgk5_20180903.jpg"]').attr('title','诚信和双随机信息').attr('alt','诚信和双随机信息');$('img[src="./201910/W020191017520503285939.jpg"]').attr('title','基层医疗大发展 幸福花开香满园').attr('alt','基层医疗大发展 幸福花开香满园');$('img[src="./zdzt/201903/W020190716600935113050.jpg"]').attr('title','吉林老龄').attr('alt','吉林老龄');$('img[src="./201907/W020190724559640961857.png"]').attr('title','吉林省惠企惠民政策手册').attr('alt','吉林省惠企惠民政策手册');$('img[src="//dcs.conac.cn/image/red.png"]').attr('title','党政机关').attr('alt','党政机关');$('img[src="./images/wjw2017_wsrx2_new2.jpg"]').attr('title','卫生热线12320').attr('alt','卫生热线12320');$('img[src="./zdzt/201707/W020170726589061180414.jpg"]').attr('title','健康扶贫').attr('alt','健康扶贫');$('img[src="./201903/W020190325453350843321.jpg"]').attr('title','省卫生健康委副巡视员范明结合“3·24世界防治结核病日”进行走访调研').attr('alt','省卫生健康委副巡视员范明结合“3·24世界防治结核病日”进行走访调研');$('img[src="./xwzx/tpxw/201912/W020191224594916788934.jpg"]').attr('title','我省启动卫生健康系统无偿献血活动月活动').attr('alt','我省启动卫生健康系统无偿献血活动月活动');$('img[src="./images/xxgk6_20180903.jpg"]').attr('title','食品安全标准').attr('alt','食品安全标准');$('img[src="./xwzx/tpxw/201909/W020190912554643357358.jpg"]').attr('title','省疾控中心进村屯开展健康生活方式宣传活动').attr('alt','省疾控中心进村屯开展健康生活方式宣传活动');$('img[src="./zdzt/201907/W020190716602778698420.jpg"]').attr('title','健康科普').attr('alt','健康科普');$('img[src="./xwzx/tpxw/201911/W020191112501278156333.png"]').attr('title','省卫生健康委传达学习党的十九届四中全会精神').attr('alt','省卫生健康委传达学习党的十九届四中全会精神');$('img[src="./201904/W020190423324176511536.png"]').attr('title','国务院“互联网+督查”平台上线').attr('alt','国务院“互联网+督查”平台上线');$('img[src="./201904/W020190402492979319158.jpg"]').attr('title','扫黑除恶 吉林亮剑').attr('alt','扫黑除恶 吉林亮剑');$('img[src="./xwzx/tpxw/201903/W020190426395903032176.jpg"]').attr('title','省健康教育中心召开2019年全省健康教育工作业务培训会').attr('alt','省健康教育中心召开2019年全省健康教育工作业务培训会');$('img[src="./images/weibo_wjw20181101.jpg"]').attr('title','微博').attr('alt','微博');$('img[src="./images/wjw2017_yjzj.jpg"]').attr('title','意见征集').attr('alt','意见征集');$('img[src="./zdzt/201705/W020190610615998155906.jpg"]').attr('title','不忘初心 牢记使命').attr('alt','不忘初心 牢记使命');$('img[src="./xwzx/tpxw/201903/W020190312550149031623.jpg"]').attr('title','全国政协委员秦海涛：癌症早诊早治工作要加强顶层设计').attr('alt','全国政协委员秦海涛：癌症早诊早治工作要加强顶层设计');$('img[src="./xwzx/tpxw/201911/W020191112350294048102.jpg"]').attr('title','省卫生健康委主任张义到省政务大厅调研卫生健康行政审批工作').attr('alt','省卫生健康委主任张义到省政务大厅调研卫生健康行政审批工作');$('img[src="./xwzx/tpxw/201911/W020191119367435089143.jpg"]').attr('title','扎实推进尘肺病防治攻坚行动 切实有效保障劳动者健康权益').attr('alt','扎实推进尘肺病防治攻坚行动 切实有效保障劳动者健康权益');$('img[src="http://121.43.68.40/exposure/images/jiucuo.png?v=2200000009"]').attr('title','无效图片').attr('alt','无效图片');

//img
$("img").each(function(){
//给图片加alt/title
var imgAlt = this.alt,
imgTitle = this.title,
imgSrc = this.src,
parentText = this.parentElement.text;

if(this.alt=="" || this.alt==undefined){
if(imgTitle!="" && imgTitle!=undefined){
$(this).attr("alt",imgTitle);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("alt",parentText);
}
}
if(this.title=="" || this.title==undefined){
if(imgAlt!="" && imgAlt!=undefined){
$(this).attr("title",imgAlt);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("title",parentText);
}
}
})

$("img").each(function(){
if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
$(this).attr("title","图片");
$(this).attr("alt","图片");
}
})
/**
* 共通头部
*/



//当前url
_EsdDynamicTransformationScript.currentUrl = window.location.href;
//当前站点的主页判断
_EsdDynamicTransformationScript.isSiteIndexPage = (_EsdDynamicTransformationScript.currentUrl == 'http://wsjkw.jl.gov.cn' || _EsdDynamicTransformationScript.currentUrl == 'http://wsjkw.jl.gov.cn/' || _EsdDynamicTransformationScript.currentUrl == 'http://wsjkw.jl.gov.cn/#' || _EsdDynamicTransformationScript.currentUrl == 'http://wsjkw.jl.gov.cn/index.html')?true:false;

//***************	网站上部/导航栏等公共部分 begin	***************	//
// input type为text,password类型的输入框处理
// 预先定义几个常用的input title值
_EsdDynamicTransformationScript.placeholderKeyword='请输入您要查找的内容';
_EsdDynamicTransformationScript.placeholderUsername='用户名';
_EsdDynamicTransformationScript.placeholderPassword='密码';
_EsdDynamicTransformationScript.placeholderSpecialText1='您对全省城市管理效能提升工作有何意见或建议';
_EsdDynamicTransformationScript.placeholderBtnSearch='提交按钮';

// 搜索框 对象
_EsdDynamicTransformationScript.inputObject = $('#keyword');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderKeyword, 'placeholder':_EsdDynamicTransformationScript.placeholderKeyword});
// 提交按钮 对象
_EsdDynamicTransformationScript.inputObject = $('input[type="submit"]');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderBtnSearch});

// 底部几个下拉框
_EsdDynamicTransformationScript.placeholderSelectOtherProvince='各省卫生健康委网站下拉框';
_EsdDynamicTransformationScript.placeholderSelectAllCities='地方卫生健康行政部门下拉框';
_EsdDynamicTransformationScript.placeholderSelectOtherAgent='委直各单位下拉框';
_EsdDynamicTransformationScript.placeholderSelectOtherMedicalAgent='医疗机构下拉框';
// 各省卫生健康委网站下拉框 对象
_EsdDynamicTransformationScript.inputObject = $('.footer_main .links2 select:eq(0)');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderSelectOtherProvince});
// 地方卫生健康行政部门下拉框 对象
_EsdDynamicTransformationScript.inputObject = $('.footer_main .links2 select:eq(1)');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderSelectAllCities});
// 委直各单位下拉框 对象
_EsdDynamicTransformationScript.inputObject = $('.footer_main .links2 select:eq(2)');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderSelectOtherAgent});
// 医疗机构下拉框 对象
_EsdDynamicTransformationScript.inputObject = $('.footer_main .links2 select:eq(3)');
$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderSelectOtherMedicalAgent});

//***************	网站上部/导航栏等公共部分 end	***************	//
/**
* 主导航
*/
// ***************	网站上部/导航栏等公共部分 begin	***************	//
// 导航栏 ----------begin
// 第一部分	导航栏的下拉选项卡  新闻中心/政务公开/办事服务/重点专题/互动交流/应用系统
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num1 = $("#header_menu_details_mask .header_detail_container:eq(1) a").length-1;
_EsdDynamicTransformationScript.num2 = $("#header_menu_details_mask .header_detail_container:eq(2) a").length-1;
_EsdDynamicTransformationScript.num3 = $("#header_menu_details_mask .header_detail_container:eq(3) a").length-1;
_EsdDynamicTransformationScript.num4 = $("#header_menu_details_mask .header_detail_container:eq(4) a").length-1;
_EsdDynamicTransformationScript.num5 = $("#header_menu_details_mask .header_detail_container:eq(5) a").length-1;
_EsdDynamicTransformationScript.num6 = $("#header_menu_details_mask .header_detail_container:eq(6) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd1TagNum1 = $("#header_menu_list .header_menu_list:eq(0) a");
_EsdDynamicTransformationScript.esd1TagNum2 = $("#header_menu_list .header_menu_list:eq(1) a");
_EsdDynamicTransformationScript.esd1TagNum3 = $("#header_menu_list .header_menu_list:eq(2) a");
_EsdDynamicTransformationScript.esd1TagNum4 = $("#header_menu_list .header_menu_list:eq(3) a");
_EsdDynamicTransformationScript.esd1TagNum5 = $("#header_menu_list .header_menu_list:eq(4) a");
_EsdDynamicTransformationScript.esd1TagNum6 = $("#header_menu_list .header_menu_list:eq(5) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd1TagNum1Content1 = $("#header_menu_details_mask .header_detail_container:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum2Content1 = $("#header_menu_details_mask .header_detail_container:eq(2) a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum3Content1 = $("#header_menu_details_mask .header_detail_container:eq(3) a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum4Content1 = $("#header_menu_details_mask .header_detail_container:eq(4) a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum5Content1 = $("#header_menu_details_mask .header_detail_container:eq(5) a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum6Content1 = $("#header_menu_details_mask .header_detail_container:eq(6) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd1TagNum1ContentN = $("#header_menu_details_mask .header_detail_container:eq(1) a:eq("+_EsdDynamicTransformationScript.num1+")");
_EsdDynamicTransformationScript.esd1TagNum2ContentN = $("#header_menu_details_mask .header_detail_container:eq(2) a:eq("+_EsdDynamicTransformationScript.num2+")");
_EsdDynamicTransformationScript.esd1TagNum3ContentN = $("#header_menu_details_mask .header_detail_container:eq(3) a:eq("+_EsdDynamicTransformationScript.num3+")");
_EsdDynamicTransformationScript.esd1TagNum4ContentN = $("#header_menu_details_mask .header_detail_container:eq(4) a:eq("+_EsdDynamicTransformationScript.num4+")");
_EsdDynamicTransformationScript.esd1TagNum5ContentN = $("#header_menu_details_mask .header_detail_container:eq(5) a:eq("+_EsdDynamicTransformationScript.num5+")");
_EsdDynamicTransformationScript.esd1TagNum6ContentN = $("#header_menu_details_mask .header_detail_container:eq(6) a:eq("+_EsdDynamicTransformationScript.num6+")");

// 第一部分 第1个tab
_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {

e = $(this).mouseover();
$(document).bind("keydown.keydown_1_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum1.mouseout();
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
$(document).unbind("keydown.keydown_1_1");
});

_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
$(document).bind("keydown.keydown_1_1_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
$(document).unbind("keydown.keydown_1_1_1");
});

_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
$(document).bind("keydown.keydown_1_1_n", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
$(document).unbind("keydown.keydown_1_1_n");
});
// 第一部分 第2个tab
_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_1_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
$(document).unbind("keydown.keydown_1_2");
});

_EsdDynamicTransformationScript.esd1TagNum2Content1.focus(function () {
$(document).bind("keydown.keydown_1_2_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum2Content1.blur(function () {
$(document).unbind("keydown.keydown_1_2_1");
});

_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus(function () {
$(document).bind("keydown.keydown_1_2_n", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum2ContentN.blur(function () {
$(document).unbind("keydown.keydown_1_2_n");
});

// 第一部分 第3个tab
_EsdDynamicTransformationScript.esd1TagNum3.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_1_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum2.mouseover();
_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum3.blur(function () {
$(document).unbind("keydown.keydown_1_3");
});

_EsdDynamicTransformationScript.esd1TagNum3Content1.focus(function () {
$(document).bind("keydown.keydown_1_3_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum3Content1.blur(function () {
$(document).unbind("keydown.keydown_1_3_1");
});

_EsdDynamicTransformationScript.esd1TagNum3ContentN.focus(function () {
$(document).bind("keydown.keydown_1_3_n", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum3ContentN.blur(function () {
$(document).unbind("keydown.keydown_1_3_n");
});

// 第一部分 第4个tab
_EsdDynamicTransformationScript.esd1TagNum4.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_1_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum3.mouseover();
_EsdDynamicTransformationScript.esd1TagNum3ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum4Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum4.blur(function () {
$(document).unbind("keydown.keydown_1_4");
});

_EsdDynamicTransformationScript.esd1TagNum4Content1.focus(function () {
$(document).bind("keydown.keydown_1_4_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum4.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum4Content1.blur(function () {
$(document).unbind("keydown.keydown_1_4_1");
});

_EsdDynamicTransformationScript.esd1TagNum4ContentN.focus(function () {
$(document).bind("keydown.keydown_1_4_n", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum5.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum4ContentN.blur(function () {
$(document).unbind("keydown.keydown_1_4_n");
});

// 第一部分 第5个tab
_EsdDynamicTransformationScript.esd1TagNum5.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_1_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum4.mouseover();
_EsdDynamicTransformationScript.esd1TagNum4ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum5Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum5.blur(function () {
$(document).unbind("keydown.keydown_1_5");
});

_EsdDynamicTransformationScript.esd1TagNum5Content1.focus(function () {
$(document).bind("keydown.keydown_1_5_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum5.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum5Content1.blur(function () {
$(document).unbind("keydown.keydown_1_5_1");
});

_EsdDynamicTransformationScript.esd1TagNum5ContentN.focus(function () {
$(document).bind("keydown.keydown_1_5_n", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum6.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum5ContentN.blur(function () {
$(document).unbind("keydown.keydown_1_5_n");
});

// 第一部分 第6个tab
_EsdDynamicTransformationScript.esd1TagNum6.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_1_6", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum5.mouseover();
_EsdDynamicTransformationScript.esd1TagNum5ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum6Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum6.blur(function () {
$(document).unbind("keydown.keydown_1_6");
});

_EsdDynamicTransformationScript.esd1TagNum6Content1.focus(function () {
$(document).bind("keydown.keydown_1_6_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum6.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum6Content1.blur(function () {
$(document).unbind("keydown.keydown_1_6_1");
});

_EsdDynamicTransformationScript.esd1TagNum6ContentN.focus(function () {
$(document).bind("keydown.keydown_1_6_n", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum6.mouseout();
}
});
});
_EsdDynamicTransformationScript.esd1TagNum6ContentN.blur(function () {
$(document).unbind("keydown.keydown_1_6_n");
});





//	_EsdDynamicTransformationScript.esd1TagNum6ContentN.blur(function(){
//		_EsdDynamicTransformationScript.esd1TagNum6.mouseout();
//		$("a").mouseout();
//	});
// 导航栏 ----------end
// ***************	网站上部/导航栏等公共部分 end	***************	//
/**
* 网站主页轮播图
*
*/
// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){
/*	轮播,右下角原点--鼠标点击触发情况
轮播：只获取轮播中一个a标签。
以文字a标签为主，图片a标签尽量不要，title不稳定
*/

//轮播前的标签
_EsdDynamicTransformationScript.num = $("#header_menu_details_mask .header_detail_container:eq(6) .drop_nav_list li").length-1;
_EsdDynamicTransformationScript.esdRotationPreATag = $("#header_menu_details_mask .header_detail_container:eq(6) .drop_nav_list li:eq("+_EsdDynamicTransformationScript.num+") a");

//文字A标签
_EsdDynamicTransformationScript.esdRotationATag1 = $("#D1pic1 .fcon:eq(0) .shadow a");
_EsdDynamicTransformationScript.esdRotationATag2 = $("#D1pic1 .fcon:eq(1) .shadow a");
_EsdDynamicTransformationScript.esdRotationATag3 = $("#D1pic1 .fcon:eq(2) .shadow a");
_EsdDynamicTransformationScript.esdRotationATag4 = $("#D1pic1 .fcon:eq(3) .shadow a");
_EsdDynamicTransformationScript.esdRotationATag5 = $("#D1pic1 .fcon:eq(4) .shadow a");
_EsdDynamicTransformationScript.esdRotationATag6 = $("#D1pic1 .fcon:eq(5) .shadow a");
_EsdDynamicTransformationScript.esdRotationATag7 = $("#D1pic1 .fcon:eq(6) .shadow a");
_EsdDynamicTransformationScript.esdRotationATag8 = $("#D1pic1 .fcon:eq(7) .shadow a");
_EsdDynamicTransformationScript.esdRotationATag9 = $("#D1pic1 .fcon:eq(8) .shadow a");

//原点
_EsdDynamicTransformationScript.esdRotationCircleNumPoint1 = $("#D1fBt a:eq(0) i");
_EsdDynamicTransformationScript.esdRotationCircleNumPoint2 = $("#D1fBt a:eq(1) i");
_EsdDynamicTransformationScript.esdRotationCircleNumPoint3 = $("#D1fBt a:eq(2) i");
_EsdDynamicTransformationScript.esdRotationCircleNumPoint4 = $("#D1fBt a:eq(3) i");
_EsdDynamicTransformationScript.esdRotationCircleNumPoint5 = $("#D1fBt a:eq(4) i");
_EsdDynamicTransformationScript.esdRotationCircleNumPoint6 = $("#D1fBt a:eq(5) i");
_EsdDynamicTransformationScript.esdRotationCircleNumPoint7 = $("#D1fBt a:eq(6) i");
_EsdDynamicTransformationScript.esdRotationCircleNumPoint8 = $("#D1fBt a:eq(7) i");
_EsdDynamicTransformationScript.esdRotationCircleNumPoint9 = $("#D1fBt a:eq(8) i");

//轮播后的标签
_EsdDynamicTransformationScript.esdRotationAfterATag = $(".main .part:eq(0) h2 a");

// 轮播图 轮播前的焦点
_EsdDynamicTransformationScript.esdRotationPreATag.focus(function (e) {
$(this).bind("keydown.keydown_0_0", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
//				$("#header_menu_list .header_menu_list:eq(5) a").mouseout();
_EsdDynamicTransformationScript.esdRotationCircleNumPoint1.click();
_EsdDynamicTransformationScript.esdRotationATag1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdRotationPreATag.blur(function(){
$(this).unbind("keydown.keydown_0_0");
});

// 轮播图 第一块
_EsdDynamicTransformationScript.esdRotationATag1.focus(function (e) {
$(this).bind("keydown.keydown_0_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
$("#header_menu_list .header_menu_list:eq(5) a").mouseover();
_EsdDynamicTransformationScript.esdRotationPreATag.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdRotationCircleNumPoint2.click();
_EsdDynamicTransformationScript.esdRotationATag2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdRotationATag1.blur(function(){
$(this).unbind("keydown.keydown_0_1");
});

// 轮播图 第二块
_EsdDynamicTransformationScript.esdRotationATag2.focus(function (e) {
$(this).bind("keydown.keydown_0_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdRotationCircleNumPoint1.click();
_EsdDynamicTransformationScript.esdRotationATag1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdRotationCircleNumPoint3.click();
_EsdDynamicTransformationScript.esdRotationATag3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdRotationATag2.blur(function(){
$(this).unbind("keydown.keydown_0_2");
});

// 轮播图 第三块
_EsdDynamicTransformationScript.esdRotationATag3.focus(function (e) {
$(this).bind("keydown.keydown_0_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdRotationCircleNumPoint2.click();
_EsdDynamicTransformationScript.esdRotationATag2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdRotationCircleNumPoint4.click();
_EsdDynamicTransformationScript.esdRotationATag4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdRotationATag3.blur(function(){
$(this).unbind("keydown.keydown_0_3");
});

// 轮播图 第四块
_EsdDynamicTransformationScript.esdRotationATag4.focus(function (e) {
$(this).bind("keydown.keydown_0_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdRotationCircleNumPoint3.click();
_EsdDynamicTransformationScript.esdRotationATag3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdRotationCircleNumPoint5.click();
_EsdDynamicTransformationScript.esdRotationATag5.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdRotationATag4.blur(function(){
$(this).unbind("keydown.keydown_0_4");
});

// 轮播图 第五块
_EsdDynamicTransformationScript.esdRotationATag5.focus(function (e) {
$(this).bind("keydown.keydown_0_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdRotationCircleNumPoint4.click();
_EsdDynamicTransformationScript.esdRotationATag4.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdRotationCircleNumPoint6.click();
_EsdDynamicTransformationScript.esdRotationATag6.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdRotationATag5.blur(function(){
$(this).unbind("keydown.keydown_0_5");
});

// 轮播图 第六块
_EsdDynamicTransformationScript.esdRotationATag6.focus(function (e) {
$(this).bind("keydown.keydown_0_6", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdRotationCircleNumPoint5.click();
_EsdDynamicTransformationScript.esdRotationATag5.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdRotationCircleNumPoint7.click();
_EsdDynamicTransformationScript.esdRotationATag7.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdRotationATag6.blur(function(){
$(this).unbind("keydown.keydown_0_6");
});

// 轮播图 第七块
_EsdDynamicTransformationScript.esdRotationATag7.focus(function (e) {
$(this).bind("keydown.keydown_0_7", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdRotationCircleNumPoint6.click();
_EsdDynamicTransformationScript.esdRotationATag6.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdRotationCircleNumPoint8.click();
_EsdDynamicTransformationScript.esdRotationATag8.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdRotationATag7.blur(function(){
$(this).unbind("keydown.keydown_0_7");
});

// 轮播图 第八块
_EsdDynamicTransformationScript.esdRotationATag8.focus(function (e) {
$(this).bind("keydown.keydown_0_8", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdRotationCircleNumPoint7.click();
_EsdDynamicTransformationScript.esdRotationATag7.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdRotationCircleNumPoint9.click();
_EsdDynamicTransformationScript.esdRotationATag9.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdRotationATag8.blur(function(){
$(this).unbind("keydown.keydown_0_8");
});

// 轮播图 第九块
_EsdDynamicTransformationScript.esdRotationATag9.focus(function (e) {
$(this).bind("keydown.keydown_0_9", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdRotationCircleNumPoint8.click();
_EsdDynamicTransformationScript.esdRotationATag8.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdRotationAfterATag.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdRotationATag9.blur(function(){
$(this).unbind("keydown.keydown_0_9");
});

// 轮播图 轮播后的焦点
_EsdDynamicTransformationScript.esdRotationAfterATag.focus(function (e) {
$(this).bind("keydown.keydown_0_10", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdRotationCircleNumPoint9.click();
_EsdDynamicTransformationScript.esdRotationATag9.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esdRotationAfterATag.blur(function(){
$(this).unbind("keydown.keydown_0_10");
});

}
//***************	网站首页 end	***************	//
/**
* 主页js
*/
// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){

$("#Map area").attr("hidefocus","");
$("#Map area").attr("onfocus","");

// 第二部分 选项卡 机关动态/委直单位/基层工作
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num7 = $("#agz1 a").length-1;
_EsdDynamicTransformationScript.num8 = $("#agz2 a").length-1;
_EsdDynamicTransformationScript.num9 = $("#agz3 a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd2TagNum1 = $("#bgz1 a");
_EsdDynamicTransformationScript.esd2TagNum2 = $("#bgz2 a");
_EsdDynamicTransformationScript.esd2TagNum3 = $("#bgz3 a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd2TagNum1Content1 = $("#agz1 a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum2Content1 = $("#agz2 a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum3Content1 = $("#agz3 a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd2TagNum1ContentN = $("#agz1 a:eq("+_EsdDynamicTransformationScript.num7+")");
_EsdDynamicTransformationScript.esd2TagNum2ContentN = $("#agz2 a:eq("+_EsdDynamicTransformationScript.num8+")");
_EsdDynamicTransformationScript.esd2TagNum3ContentN = $("#agz3 a:eq("+_EsdDynamicTransformationScript.num9+")");

// 第二部分 第1个tab
_EsdDynamicTransformationScript.esd2TagNum1.focus(function (e) {
//		console.log(1);
//		e = $(this).mouseover();
viewzz(1);
$(this).bind("keydown.keydown_2_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esd2TagNum1.trigger("blur");
}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esd2TagNum1.trigger("blur");
_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagNum1.blur(function () {
$(this).unbind("keydown.keydown_2_1");
});

_EsdDynamicTransformationScript.esd2TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_2_1_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esd2TagNum1Content1.trigger("blur");
_EsdDynamicTransformationScript.esd2TagNum1.focus();
return false;
}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esd2TagNum1Content1.trigger("blur");
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_2_1_1");
});

_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_2_1_n", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esd2TagNum1ContentN.trigger("blur");
}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esd2TagNum1ContentN.trigger("blur");
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_2_1_n");
});
// 第二部分 第2个tab
_EsdDynamicTransformationScript.esd2TagNum2.focus(function (e) {
//		console.log(2);
//		e = $(this).mouseover();
viewzz(2);
$(this).bind("keydown.keydown_2_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esd2TagNum2.trigger("blur");
//				_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
viewzz(1);
_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esd2TagNum2.trigger("blur");
_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2_2");
});

_EsdDynamicTransformationScript.esd2TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_2_2_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esd2TagNum2Content1.trigger("blur");
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esd2TagNum2Content1.trigger("blur");
}
});
});

_EsdDynamicTransformationScript.esd2TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_2_2_1");
});

_EsdDynamicTransformationScript.esd2TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_2_2_n", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esd2TagNum2ContentN.trigger("blur");
}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esd2TagNum2ContentN.trigger("blur");
_EsdDynamicTransformationScript.esd2TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_2_2_n");
});

// 第二部分 第3个tab
_EsdDynamicTransformationScript.esd2TagNum3.focus(function (e) {
//		console.log(3);
//		e = $(this).mouseover();
viewzz(3);
$(this).bind("keydown.keydown_2_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
//				_EsdDynamicTransformationScript.esd2TagNum3.trigger("blur");
//				_EsdDynamicTransformationScript.esd2TagNum2.mouseover();
viewzz(2);
_EsdDynamicTransformationScript.esd2TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
//				_EsdDynamicTransformationScript.esd2TagNum3.trigger("blur");
_EsdDynamicTransformationScript.esd2TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagNum3.blur(function () {
$(this).unbind("keydown.keydown_2_3");
});



// 第三部分 公示公告/人事信息

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num10 = $("#ags1 a").length-1;
_EsdDynamicTransformationScript.num11 = $("#ags2 a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd3TagNum1 = $("#bgs1 a");
_EsdDynamicTransformationScript.esd3TagNum2 = $("#bgs2 a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd3TagNum1Content1 = $("#ags1 a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum2Content1 = $("#ags2 a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd3TagNum1ContentN = $("#ags1 a:eq("+_EsdDynamicTransformationScript.num10+")");
_EsdDynamicTransformationScript.esd3TagNum2ContentN = $("#ags2 a:eq("+_EsdDynamicTransformationScript.num11+")");

// 第三部分 第1个tab
_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {

e = $(this).mouseover();
viewzx(1);
$(this).bind("keydown.keydown_3_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {

$(this).unbind("keydown.keydown_3_1");
});

_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_3_1_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_3_1_1");
});

_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_3_1_n", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
viewzx(2);
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_3_1_n");
});

// 第三部分 第2个tab
_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
e = $(this).mouseover();
viewzx(2);
$(this).bind("keydown.keydown_3_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
viewzx(1);
_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
$(this).unbind("keydown.keydown_3_2");
});

// 第四部分	委内处室/直属单位

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num12 = $("#acs1 a").length-1;
_EsdDynamicTransformationScript.num13 = $("#acs2 a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd4TagNum1 = $("#bcs1 a");
_EsdDynamicTransformationScript.esd4TagNum2 = $("#bcs2 a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd4TagNum1Content1 = $("#acs1 a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum2Content1 = $("#acs2 a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd4TagNum1ContentN = $("#acs1 a:eq("+_EsdDynamicTransformationScript.num12+")");
_EsdDynamicTransformationScript.esd4TagNum2ContentN = $("#acs2 a:eq("+_EsdDynamicTransformationScript.num13+")");

// 第四部分 第1个tab 委内处室
_EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {
e = $(this).mouseover();
viewz(1);
$(this).bind("keydown.keydown_4_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_4_1");
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
$(this).unbind("keydown.keydown_4_1");
return false;
}
});

});

_EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_4_1_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1.focus();
$(this).unbind("keydown.keydown_4_1_1");
return false;
}else if(e.keyCode == 9){
$(this).unbind("keydown.keydown_4_1_1");
}
});
});

_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_4_1_n", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_4_1_n");
}else if (e.keyCode == 9) {
viewz(2);
_EsdDynamicTransformationScript.esd4TagNum2.focus();
$(this).unbind("keydown.keydown_4_1_n");
return false;
}
});
});

// 第四部分 第2个tab 直属单位
_EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
e = $(this).mouseover();
viewz(2);
$(this).bind("keydown.keydown_4_2_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
viewz(1);
_EsdDynamicTransformationScript.esd4TagNum1.mouseover();
_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
$(this).unbind("keydown.keydown_4_2_1");
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
$(this).unbind("keydown.keydown_4_2_1");
return false;
}
});

});

_EsdDynamicTransformationScript.esd4TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_4_2_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.focus();
$(this).unbind("keydown.keydown_4_2_1");
return false;
}else if(e.keyCode == 9){
$(this).unbind("keydown.keydown_4_2_1");
}
});
});

_EsdDynamicTransformationScript.esd4TagNum2ContentN.focus(function () {
viewz(2);
$(this).bind("keydown.keydown_4_2_n", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(this).unbind("keydown.keydown_4_2_n");
}else if (e.keyCode == 9) {
$(this).unbind("keydown.keydown_4_2_n");
return false;
}
});
});










// 第五部分 国务院信息/省政府动态  iframe包含的本站内的页面
//将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
if(iframeObj != undefined){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
jsObj.self = iframeObj;
}
};

//声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[0];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取

//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $("#bzz1 a:first");  // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $("#bzz2 a:first");  // 需要修改 这里的tab获取

// 判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

// 当iframe都加载完毕后执行代码 使用setInterval
_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){

if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined)
&&_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined ){
clearInterval(_EsdDynamicTransformationScript.iframeInterval);

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2);

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
e = $(this).mousemove();
$(this).bind("keydown.iframeKeydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
//						 _EsdDynamicTransformationScript.iframeTab1.trigger("blur");
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
$(_EsdDynamicTransformationScript.iframe1.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab1.blur(function () {
$(this).unbind("keydown.iframeKeydown_1");
});

//第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});

//第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});


//第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
e = $(this).mousemove();
$(this).bind("keydown.iframeKeydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.mousemove();
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
$(_EsdDynamicTransformationScript.iframe2.self).focus();
return false;
}
});

});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
$(this).unbind("keydown.iframeKeydown_2");
});
}

}, 500);

}
}
// ***************	网站首页 end	***************	//
/**
* 共通底部处理
*/
/**
* 页面区域跳转 选择器定义js
*/

//公共的
//定义跳转 使用jquery选择器语法	此部分选择器  其中main,left,right和content在各个页面的if判断语句中重写了
_EsdDynamicTransformationScript.navBlock.selector.top=".header";
_EsdDynamicTransformationScript.navBlock.selector.nav="#header_nav";
_EsdDynamicTransformationScript.navBlock.selector.footer=".footer";

// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){

// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
_EsdDynamicTransformationScript.navBlock.selector.main=".main";
_EsdDynamicTransformationScript.navBlock.selector.left=".pics";
_EsdDynamicTransformationScript.navBlock.selector.right=".part";
_EsdDynamicTransformationScript.navBlock.selector.content=".main";

$(".main:eq(0) .pics").addClass("navBlock");
$(".main:eq(0) .part").addClass("navBlock");
$(".main:eq(1) .main_left .leader").addClass("navBlock");
$(".main:eq(1) .main_left .xfdh").addClass("navBlock");
$(".main:eq(1) .main_right .part").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}
// ***************	网站首页 end	***************	//



//面包屑导航（除首页）
if(!_EsdDynamicTransformationScript.isSiteIndexPage){

//nav后的第一个a倒切回nav的最后一个a
$(".main a:first").focus(function (e) {
$(this).bind("keydown.keydown_mainA", function (e) {
if(e.shiftKey&&e.keyCode==9){
$("#header_menu_list .header_menu_list:eq(5) a").mouseover();
$("#header_menu_details_mask .header_detail_container:last a:last").focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
$(".main a:first").blur(function(){
$(this).unbind("keydown.keydown_mainA");
});

//目录页的翻页input处理
$("#num").attr("title","跳转到第多少页");
$("#num").attr("placeholder","跳转到第多少页");
$(".page input[type='submit']").attr("title","提交");
$(".page input[type='submit']").attr("placeholder","提交");

_EsdDynamicTransformationScript.navBlock.selector.main=".main";
_EsdDynamicTransformationScript.navBlock.selector.left=".main .main_left";
_EsdDynamicTransformationScript.navBlock.selector.right=".main .main_right";
_EsdDynamicTransformationScript.navBlock.selector.content=".main .news";

$(".main > div").addClass("navBlock");
$(".main .news").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}















/**
* 区域导航、调试开关
*/

$(document).bind("keydown.keydown_9001", function(e) {
if (e.shiftKey && e.keyCode == 20) {
$("*").focus(function() {
$(this).css({
"outline" : "2px dashed red"
});
});
$("*").blur(function() {
$(this).css({
"outline" : "0px black"
});
});
}
});

_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
// 快捷键定义区
//_EsdDynamicTransformationScript.navBlock.key = {};

//_EsdDynamicTransformationScript.navBlock.key.top = "alt+1"; // (top)
//_EsdDynamicTransformationScript.navBlock.key.nav = "alt+2"; // (nav)
//_EsdDynamicTransformationScript.navBlock.key.main = "alt+3"; // (main)
//_EsdDynamicTransformationScript.navBlock.key.content = "alt+4"; // (content)
//_EsdDynamicTransformationScript.navBlock.key.left = "alt+5"; // (left)
//_EsdDynamicTransformationScript.navBlock.key.right = "alt+6"; // (right)
//_EsdDynamicTransformationScript.navBlock.key.footer = "alt+7"; // (footer)
//_EsdDynamicTransformationScript.navBlock.key.down = "alt+8"; // (down)
//_EsdDynamicTransformationScript.navBlock.key.up = "alt+9"; // (up);

// 以下变量主要用于区块跳转
_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

// 主要代码区域

// 导航跳转
_EsdDynamicTransformationScript.navBlock.keyShowSelect = function(i) {
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, el) {
if (i == index) {
_EsdDynamicTransformationScript.navBlock.debugView(el);
$(el).find("a").each(function(i, e) {
if (i == 0) {
$(e).focus();
}
});

}
});
}

// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, ehx) {
_EsdDynamicTransformationScript.navBlock.maxIndex++;
});



// 快捷键功能区域
// 跳转到头部alt+1(49)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 49) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
}

});
// 跳转到导航alt+2(50)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 50) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
}

});
// 跳转到主要区域alt+3(51)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 51) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
}
});

// 跳转到正文区域alt+4(52)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 52) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
}
});

// 跳转到左区域alt+5(53)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 53) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
}
});

// 跳转到右区域alt+6(54)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 54) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
}
});
// 跳转到底部alt+7(55)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 55) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
}
});
//前进alt+8(56)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 56) {
if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex++;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});

// 后退alt+9(57)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 57) {
if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex--;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});
// 特定区域跳转
_EsdDynamicTransformationScript.navBlock.keySelectScroll = function(id) {
if ($(id).length > 0) {
_EsdDynamicTransformationScript.navBlock.appendIns(id,true);//插入ins
_EsdDynamicTransformationScript.navBlock.debugView(id);
$(id).find("a").each(function(index) {
if (index == 0) {
$(this).focus();
}
});
_EsdDynamicTransformationScript.navBlock.appendIns(id,false);//清楚ins
} else {
}

}
//为了解决漂浮高等于0的情况下区域显示是一条线
_EsdDynamicTransformationScript.navBlock.appendIns=function(id,b){
if(b==true){
$(id).append("<ins id='esdNavBlockIns' style='clear: both;display: block;'></ins>")
}else{
$("#esdNavBlockIns").remove();
}
}

if (_EsdDynamicTransformationScript.navBlock.debug == true) {
// 如果开启调试模式，添加调试绘制矩形边线
$("body").append("<div id='show_top' class='lineshow'></div>");
$("body").append("<div id='show_bottom' class='lineshow'></div>");
$("body").append("<div id='show_left' class='lineshow'></div>");
$("body").append("<div id='show_right' class='lineshow'></div>");
$(".lineshow").css({
"display" : "none"
});
}
// 开启调试模式后会显示红边
_EsdDynamicTransformationScript.navBlock.debugView = function(e) {
if (_EsdDynamicTransformationScript.navBlock.debug == true) {
var x = $(e).offset();
//var w = parseInt($(e).css("width"));
var w = $(e).outerWidth();//返回元素的宽度（包含 padding 和 border）
//var h = parseInt($(e).css("height"));
var h = $(e).outerHeight();//返回元素的高度（包含 padding 和 border）
$("#show_top").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_bottom").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top + h,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_left").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : "0px",
"height" : h
});
$("#show_right").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left + w,
"width" : "0px",
"height" : h
});
$("html,body").animate({
scrollTop : $("#show_top").offset().top
}, 200);
$(".lineshow").css({
"display" : "block"
});
}
}
};
/**
* 主入口方法
*/

if (window.jQuery == undefined) {
var wzaInitInterval = setInterval(function(){
if(document.body!=null){
clearInterval(wzaInitInterval);
//			var originalWindowOnload = null;
//			if(window.onload!=null){
//				originalWindowOnload = window.onload;
//			}
document.body.onload = function(){
//				originalWindowOnload();
var esdJquery = document.createElement("script");
esdJquery.setAttribute("type", "text/javascript");
esdJquery.setAttribute("src", window.location.protocol + "//" + window.location.href.split("/")[2] + "/wza/bwscript/jquery-1.12.4.min.js");
esdJquery.setAttribute("charset", "utf-8");
esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
document.body.appendChild(esdJquery);
var jqueryLoadInterval = setInterval(function () {
if (window.jQuery != undefined) {
clearInterval(jqueryLoadInterval);
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//						_EsdDynamicTransformationFunction(jQuery)
}
}, 500);
};
}
}, 10);
} else {
jQuery(function(){
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//		_EsdDynamicTransformationFunction(jQuery)
})

}
